package com.pencilisland.pay.api.bean.constant;

import org.springframework.http.MediaType;

public class WxpayConstant {
	/**
	 * 获取沙箱KEY
	 */
	public static final String SANDBOX_SIGN_KEY_URL = "https://api.mch.weixin.qq.com/sandboxnew/pay/getsignkey";
	/**
	 * 统一下单API地址
	 */
	public static final String ORDER_URL = "https://api.mch.weixin.qq.com/pay/unifiedorder";
	
	/**
	 * 关闭订单
	 */
	public static final String CLOSE_ORDER_URL = "https://api.mch.weixin.qq.com/pay/closeorder";
	
	/**
	 * application/xml utf-8
	 */
	public static final MediaType APPLICAIONT_XML_UTF8 = MediaType.parseMediaType("application/xml; charset=UTF-8");
	
	/**
	 * 返回码成功标识
	 */
	public static final String SUCCESS="SUCCESS";
	/**
	 * 返回码失败标识
	 */
	public static final String FAIL = "FAIL";
	
	/**
	 * 支付场景-公众号支付
	 */
	public static final String JSAPI="JSAPI";
	/**
	 * 支付场景-原生扫码支付
	 */
	public static final String NATIVE="NATIVE";
	/**
	 * 支付场景-app支付
	 */
	public static final String APP="APP";
	
}
